export default {
  // Global page headers (https://go.nuxtjs.dev/config-head)
  head: {
    title: "freeyun",
    meta: [
      { charset: "utf-8" },
      { name: "viewport", content: "width=device-width, initial-scale=1" },
      { hid: "description", name: "description", content: "" }
    ],
    link: [
      { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
      {
        rel: "stylesheet",
        type: "text/css",
        href: "//at.alicdn.com/t/font_1168872_ehvuah8v57g.css"
      }, // 新增全局字体样式
      {
        rel: "stylesheet",
        type: "text/css",
        href: "//at.alicdn.com/t/font_2116766_y9cv8joyr2f.css"
      },
      {
        rel: "stylesheet",
        type: "text/css",
        href: "//at.alicdn.com/t/font_2122130_6y1nmhr76nw.css"
      } //赞

    ]
  },

  // Global CSS (https://go.nuxtjs.dev/config-css)
  css: [
    "element-ui/lib/theme-chalk/index.css",
    "assets/main.css" // 新增自定义的页面过渡样式（文件来自3.4.1）
  ],

  // Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
  plugins: [
    "@/plugins/element-ui",
    // '@/plugins/localStorage.js',
    // 如果需要其它的配置，则可以使用对象的方式来进行
    // src:指定当前插件的路径
    // ssr:说明现在不需要在服务器进行使用，否则会报window is not defined
    { src: "@/plugins/localStorage", ssr: false },
    "@/plugins/myaxios", //调用拦截器（错误处理）插件
    { src: "@/plugins/vueeditor.js", ssr: false } //富文本框插件
  ],

  // Auto import components (https://go.nuxtjs.dev/config-components)
  components: true,

  // Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
  buildModules: [],

  // Modules (https://go.nuxtjs.dev/config-modules)
  modules: [
    // https://go.nuxtjs.dev/axios
    "@nuxtjs/axios"
  ],

  // Axios module configuration (https://go.nuxtjs.dev/config-axios)
  axios: {
    // See https://github.com/nuxt-community/axios-module#options
    baseURL: "http://157.122.54.189:9095" // 新增备用地址--远程的，更新数据更及时
    // baseURL: "http://127.0.0.1:1337" // 新增axios默认请求路径
  },

  // Build Configuration (https://go.nuxtjs.dev/config-build)
  build: {
    transpile: [/^element-ui/],

    /*
     ** You can extend webpack config here
     */
    extend(config, ctx) { }
  }
};
